
function Product(){

    this._id = '';
    this.name = '';
    this.pic = '';
    this.category = '';
    this.content = '';
}

Product.list = function (page, success, error) {

    $.ajax({
        url: '/products/list',
        type: 'GET',
        data: page,
        dataType: 'json',
        success: success,
        error: error
    })
}